package com.zhongke.cotrun.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhongke.cotrun.model.validator.UserValidator;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

import javax.validation.constraints.NotNull;

@ApiModel(value = "用户需求信息-竞标留言")
@Data
public class NeedBidding {
	
	@ApiModelProperty(value = "id主键", example = "123")
	@NotNull(message = "主键不能为空", groups = {UserValidator.UpDate.class})
    private Long id;     
	@ApiModelProperty(value = "user_info主键", example = "123")
	@NotNull(message = "用户id不能为空", groups = {UserValidator.UpDate.class, UserValidator.InSet.class})
	private Long userInfoId;
    @ApiModelProperty(value = "wx_need_info主键", example = "123")    
    @NotNull(message = "需求id不能为空", groups = {UserValidator.UpDate.class, UserValidator.InSet.class})
    private Long infoId;
    @ApiModelProperty(value = "内容", example = "123")    
    @NotNull(message = "内容不能为空", groups = {UserValidator.UpDate.class, UserValidator.InSet.class})
	private String note;
    @ApiModelProperty(value = "状态", example = "0")   
    @NotNull(message = "状态不能为空", groups = {UserValidator.UpDate.class, UserValidator.InSet.class})
	private String state;
        
    @ApiModelProperty(value = "备注", example = "123")   
    private String remarks;//备注
    @ApiModelProperty(value = "创建人", example = "123")  
    private Long createBy;
    @ApiModelProperty(value = "更新人", example = "123")  
    private Long updateBy;
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
    
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;
    
    @ApiModelProperty(value = "删除标记（0：正常；1：回收站）", example = "0")    
    private String delFlag;
}
